package com.flong.spring.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * @Author:liangjl
 * @Date: 2020/6/10-21:40
 * @Eamil:jilongliang@sina.com
 * @Description:
 */
public class Cat implements InitializingBean, DisposableBean {


    public Cat(){
        System.out.println("Cat constructor");
    }
    @Override
    public void destroy() throws Exception {
        System.out.println("Cat destroy");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("Cat afterPropertiesSet");
    }
}
